package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.OOP.dangnhaphethong;

public class Models {

	public boolean checkUsername(Userinfo user) {
		if (user.getUsername().equals("")) {
			return false;
		} else{
			return true;}
	}

	public boolean checkPassword(Userinfo user) {
		if (user.getPassword().equals("")) {
			return false;
		} else{
			return true;}
	}

	public boolean checkUserinfo(Userinfo user) {
		if (user.getUsername().equals("Tran Van A")
				&& user.getPassword().equals("1234")) {
			return true;
		} else {
			return false;}
	}
}
